package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.SetmealDish;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

@Mapper
public interface SetmealDishMapper {


    List<Long> getSetmealByDishId(List<Long> ids);

    Page<SetmealVO> pageSetmealWithCategory(SetmealPageQueryDTO setmealPageQueryDTO);


    void addSetmealWithDish(SetmealDish setmealDishes);

    void deleteDishBySetmealId(List<Long> ids);

    @Select("select * from setmeal_dish where setmeal_id = #{setmealId}")
    List<SetmealDish> getDishBySetmealId(Long id);
}
